package com.epam.task.web.entity;

/**
 * User: zhunusbekova.arailym
 */

public class User {

    public static final int MANAGER = 1;
    public static final int CUSTOMER = 2;
    private long id;
    private String username;
    private String firstName;
    private String lastName;
    private String password;
    private String email;
    private UserGroup group;
    private Orders orders;

    public User() {
    }

    public User(String username, String firstName, String surname, String password, String email, UserGroup group) {
        super();
        this.username = username;
        this.firstName = firstName;
        this.lastName = surname;
        this.password = password;
        this.email = email;
        this.group = group;
    }

    public User(long id, String username, String firstName, String surname, String password, String email, UserGroup group) {
        this.id = id;
        this.username = username;
        this.firstName = firstName;
        this.lastName = surname;
        this.password = password;
        this.email = email;
        this.group = group;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public UserGroup getGroup() {
        return group;
    }

    public void setGroup(UserGroup group) {
        this.group = group;
    }
}
